package com.zy.cat.entity.dev.act.resp;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import lombok.NoArgsConstructor;

/**
 * 
 * @info 天天抽奖详情信息实体类
 * @author xiake
 * @date 2020-08-26 17:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("天天抽奖详情信息")
public class CatDailyDrawDetailResp {
	
	@ApiModelProperty(value = "本轮抽奖ID", example = "18986866666")
	private Integer id;
	
	@ApiModelProperty(value = "奖品ID", example = "18986866666")
	private Integer prizeId;

	@JsonIgnore
	@ApiModelProperty(value = "用户ID")
	private String pid = "";
	
	 /**
     * 幸运值(0-100)
     */
	@ApiModelProperty(value = "当前幸运值", example = "20")
    private Integer luckyValue;

    /**
     * 增加幸运值次数
     */
	@ApiModelProperty(value = "已增加幸运值次数", example = "0")
    private Integer increaseCount;
	
	@ApiModelProperty(value = "奖品名称", example = "商品标题")
	private String prizeName = "";

	@ApiModelProperty(value = "商品价值", example = "商品价值")
	private String prizePrice = "";

	@ApiModelProperty(value = "商品主图", example = "505685856")
	private String mainPic = "";
	
	@ApiModelProperty(value = "奖品轮播图", example = "505685856")
	private String imgs = "";

	@ApiModelProperty(value = "商品详情图", example = "505685856")
	private String detailPics ;
	
	@ApiModelProperty(value = "最多参与人数条件", example = "100")
	private long drawTotal;
	
	@ApiModelProperty(value = "抽奖状态(-1.本轮异常、0.未开奖、1.已开奖)", example = "0")
	private Integer drawStatus;
	
	@ApiModelProperty(value = "商品期数", example = "1")
	private int round;
	
	@ApiModelProperty(value = "已参与人数", example = "0")
	private Integer drawNum;
	
	@ApiModelProperty(value = "用户是否开启此抽奖(0.未开启、1.已开启)", example = "0")
	private Integer isStart;
	
	 /**
     * 中奖用户pid
     */
	@ApiModelProperty(value = "中奖用户pid", example = "21212451545")
    private String awardee;
	
	/**
     * 中奖用户头像
     */
	@ApiModelProperty(value = "中奖用户头像", example = "21212451545")
    private String awardeeIcon;
	
	/**
     * 中奖用户昵称
     */
	@ApiModelProperty(value = "中奖用户名称", example = "上善若水")
    private String awardeeName;
	
	/**
     * 获奖用户幸运值(0-100)
     */
	@ApiModelProperty(value = "获奖用户幸运值", example = "80")
    private Integer awardeeLuckyValue;

    /**
     * 开奖时间
     */
	@ApiModelProperty(value = "开奖时间", example = "21212451545")
	@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date drawTime;

    /**
     * 创建时间
     */
	@ApiModelProperty(value = "开始时间", example = "21212451545")
	@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date createTime;
	
	@JsonIgnore
	@ApiModelProperty(value = "查询类型(0.全部记录、1.个人记录)", example = "20")
    private Integer type;

	public CatDailyDrawDetailResp(String pid) {
		super();
		this.pid = pid;
	}
	
	public CatDailyDrawDetailResp(Integer id) {
		super();
		this.id = id;
	}	

	public CatDailyDrawDetailResp(Integer id, String pid) {
		super();
		this.id = id;
		this.pid = pid;
	}

	public CatDailyDrawDetailResp(String pid, Integer drawStatus) {
		super();
		this.pid = pid;
		this.drawStatus = drawStatus;
	}
	
}
